package com.stox.charting.ui.swing.presenter.delegate.advisor;

import com.stox.charting.ui.swing.model.Chart;

public class ChartSizeAdvisor {

	public void advise(Chart<?> chart){
		if(chart != null){
			chart.setSize(chart.getParent().getSize());
			chart.getModel().fireChartModelChangedEvent("viewport");
		}
	}
}
